package com.kingsoft.dc.khaos.module.spark.model.center.metric;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

import java.io.Serializable;

/**
 * Created by haorenhui on 2021/01/11
 */
public class DataMetric implements Serializable {
    private static final long serialVersionUID = 1L;

    //组件名
    protected String component = "di";
    //运行环境
    protected String env;

    //时间戳(毫秒)
    protected Long timestamp;
    //任务类型
    protected String jobType;
    //租户id
    protected String userId;

    //作业流名称
    protected String flowName;
    //作业流id
    protected String flowId;
    //作业名称
    protected String jobName;
    //作业id
    protected String jobId;
    //作业实例ID
    protected String jobInstId;
    //项目ID
    protected String projectId;
    //项目名称
    protected String projectName;
    //业务日期时间戳
    protected Long bizTimestamp;
    //业务日期
    protected String bizDate;
    //业务时间
    protected String bizTime;

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public String getJobType() {
        return jobType;
    }

    public void setJobType(String jobType) {
        this.jobType = jobType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getFlowName() {
        return flowName;
    }

    public void setFlowName(String flowName) {
        this.flowName = flowName;
    }

    public String getFlowId() {
        return flowId;
    }

    public void setFlowId(String flowId) {
        this.flowId = flowId;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobId() {
        return jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }

    public String getJobInstId() {
        return jobInstId;
    }

    public void setJobInstId(String jobInstId) {
        this.jobInstId = jobInstId;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Long getBizTimestamp() {
        return bizTimestamp;
    }

    public void setBizTimestamp(Long bizTimestamp) {
        this.bizTimestamp = bizTimestamp;
    }

    public String getBizDate() {
        return bizDate;
    }

    public void setBizDate(String bizDate) {
        this.bizDate = bizDate;
    }

    public String getBizTime() {
        return bizTime;
    }

    public void setBizTime(String bizTime) {
        this.bizTime = bizTime;
    }

    public String toString(){
        return JSON.toJSONString(this, SerializerFeature.WriteMapNullValue);
    }

}